<template>
  <div class="app-container">
    <img src="../../assets/yellow_smile.png" />
    <h2>欢迎 {{ name }} 来到</h2>
    <h2>霍森房屋租赁系统</h2>
  </div>
</template>

<script>
import { mapGetters } from 'vuex';

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters(['name','userId'])
  }
};
</script>

<style scoped>
.app-main {
  position: relative;
}
.app-container {
  height: 400px;
  width: 400px;
  text-align: center;
  position: absolute;
  top: 25%;
  left: 35%;
}
h2 {
  color: #fca106;
}
</style>